package day0602;
//从1000到9999之间获取所有的数判断，将符合下边规律的数全部打印出来
//5349     (53 + 49) * (5*10+3 + 4*10+9) =5349
public class File12 {
    public static void main(String[] args) {
        int shu=1000;
        while(shu<=9999){
            int q=shu/1000%10;
            int b=shu/100%10;
            int s=shu/10%10;;
            int g=shu/1%10;;
            if(  (q*10+b + s*10+g) * (q*10+b + s*10+g) ==shu ){
                System.out.println(shu);
            }
            shu++;
        }
    }
}
